package edu.gmu.messages;
public class Class implements edu.gmu.middleware.Message{
public Class() { }
public java.util.List <Student> students;

public void marshal(edu.gmu.streams.BlockOutputStream output) throws java.io.IOException{
    int studentsSize = students.size();
    output.writeInt( studentsSize );
    for( int i = 0; i < studentsSize; i++){
        this.students.get(i).marshal(output);
    }
}

public void unmarshal(edu.gmu.streams.BlockInputStream input) throws java.io.IOException{
    this.students = new java.util.LinkedList<Student>();
    int studentsSize = input.readInt();
    for( int i = 0; i < studentsSize; i++){
        Student aMessage = new Student();
        aMessage.unmarshal(input);
        this.students.add(aMessage);
    }
}
}
